#include "LeiJiaPushButton.h"
#include "LeiJiaWebHttp.h"
LeiJiaPushButton::LeiJiaPushButton(QWidget *parent)
	: QPushButton(parent)
{

}

LeiJiaPushButton::~LeiJiaPushButton()
{

}

void LeiJiaPushButton::mousePressEvent(QMouseEvent* e)
{
	QString style = QString(" QPushButton{border-image:url(%1);} ").arg(LeiJiaWebHttp::GetInstance()->iKonwButtonStateImage);
	setStyleSheet(style);

}

void  LeiJiaPushButton::mouseReleaseEvent(QMouseEvent* e)
{
	emit QPushButton::clicked();
}
